import {postData} from "./http";

export const searchWorksInfo = (currentPage,size,data) =>postData(`/worksInfo/searchWorksInfo?currentPage=${currentPage}&size=${size}`, data);

export const changeWorkById = (data) => postData(`/worksInfo/changeWorkById`, data);

export const getWorkInfoById = (data) => postData(`/worksInfo/getWorkInfoById`, data);

export const deleteWorkById = (data) => postData(`/worksInfo/deleteWorkById`, data);

export const addWork = (data) =>postData(`/worksInfo/uploadFile`, data);

export const selectAllWorks = () =>postData(`/worksInfo/selectAllWorks`);

